#!/bin/bash

#ffmpeg -i https://svipsvip.ffzy-online5.com/20241005/33228_877f8395/index.m3u8 115.mp4
--prefix=${LIB_DIR}

$ sudo apt install autoconf
$ sudo apt-get install libtool
$ ./autogen.sh
$ ./configure --prefix=$HOME/build/libfdk_aac/ --host=arm-xilinx-linux-gnueabi --enable-static CC=/usr/bin/gcc CFLAGS="-mfloat-abi=softfp -mfpu=neon"


--pkg-config-flags="--define-variable=prefix=${LIB_DIR}" \

gcc --version
#!/bin/bash

if dpkg -l | grep -q "zlib1g-dev"; then
    echo "zlib1g-dev is installed."
else
    echo "zlib1g-dev is not installed."
fi

if type grep &> /dev/null; then
    echo "grep 已安装。"
else
    echo "grep 未安装。"
fi



# 指定外部动态库
--pkg-config-flags define-variable=prefix

sudo apt update
apt install build-essential cmake git pkg-config libgtk-3-dev \
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \
gfortran openexr libatlas-base-dev python3-dev python3-numpy \
libtbb2 libtbb-dev libdc1394-22-dev

mkdir ~/opencv_build && cd ~/opencv_build
git clone https://gitcode.com/sound/opencv.git
git clone https://gitcode.com/sound/opencv_contrib.git
cd ~/opencv_build/opencv
mkdir build && cd build
-D OPENCV_DOWNLOAD_PATH=/mnt/nas/work/make/git-work/build/downloads \

cmake -D CMAKE_BUILD_TYPE=RELEASE \
      -D CMAKE_INSTALL_PREFIX=/mnt/nas/work/make/git-work/build/lib \
      -D INSTALL_C_EXAMPLES=ON \
      -D INSTALL_PYTHON_EXAMPLES=ON \
      -D OPENCV_GENERATE_PKGCONFIG=ON \
      -DWITH_IPP=OFF \
      -D OPENCV_EXTRA_MODULES_PATH=/mnt/nas/work/make/git-work/build/opencv_contrib/modules \
      -D BUILD_EXAMPLES=ON ..

make -j$(nproc)
make install
sudo ldconfig


sudo apt install -y libgtk-3-dev
sudo apt install -y libavcodec-dev
sudo apt install -y libavformat-dev
sudo apt install -y libswscale-dev
sudo apt install -y libv4l-dev
sudo apt install -y libxvidcore-dev
sudo apt install -y libjpeg-dev
sudo apt install -y libpng-dev
sudo apt install -y libjpeg-dev
sudo apt install -y libtiff-dev
sudo apt install -y gfortran
sudo apt install -y openexr
sudo apt install -y libatlas-base-dev
sudo apt install -y python3-dev
sudo apt install -y python3-numpy
sudo apt install -y libtbb2
sudo apt install -y libtbb-dev
sudo apt install -y libdc1394-22-dev
apt-get install -y libboost-all-dev






















